package no.ntnu.fp.model.events;

import java.util.ArrayList;
import java.util.List;
import no.ntnu.fp.model.Employee;
import no.ntnu.fp.model.Meeting;

@SuppressWarnings("serial")
public class MeetingsChangedEvent extends ModelEvent {
	private final Employee emp;
	private final List<Meeting> oldMeetings, newMeetings;
	
	public MeetingsChangedEvent(Object source, Employee emp, 
			List<Meeting> oldMeetings, List<Meeting> newMeetings) {
		super(source);
		this.emp = emp;
		this.oldMeetings = new ArrayList<Meeting>(oldMeetings);
		this.newMeetings = new ArrayList<Meeting>(newMeetings);
	}

	public Employee getEmp() {
		return emp;
	}

	public List<Meeting> getOldMeetings() {
		return new ArrayList<Meeting>(oldMeetings);
	}

	public List<Meeting> getNewMeetings() {
		return new ArrayList<Meeting>(newMeetings);
	}
}
